package com.antoco.operation.bigscreen.controller.modelcontroller.intf;

import com.antoco.operation.bigscreen.model.dto.SensorWarnDTO;
import com.antoco.operation.bigscreen.model.dto.SensorWarnShowDTO;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

// @Api(tags = "SensorWarn API")
public interface SensorWarnController {
    // @ApiOperation("Add new data")
    public SensorWarnDTO save(@RequestBody SensorWarnDTO sensorWarn) throws Exception;

    // @ApiOperation("Find by Id")
    public SensorWarnDTO findById(@PathVariable("id") String id);

    // @ApiOperation("Delete based on primary key")
    public void delete(@PathVariable("id") String id);

    // @ApiOperation("Find all data")
    public List<SensorWarnShowDTO> list();

    // @ApiOperation("Pagination request")
    public Page<SensorWarnDTO> pageQuery(Pageable pageable);

    // @ApiOperation("Update one data")
    public SensorWarnDTO update(@RequestBody SensorWarnDTO dto, @PathVariable("id") String id);
}